﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using MPBlog.DAL;
using MPBlog.Model;
using MPBlog.UserControls;

namespace MPBlog.Ajax
{
    public partial class WidgetManage : Page
    {


        [WebMethod]
        public static string RemoveWidget(string widgetId)
        {
            if (new WidgetZoneDao().DeleteByWidgetId(widgetId))
            {
                WidgetZoneContainer.ResetWidgetZoneCache();
                return "True";
            }
            return "False";
        }
    }
}